package com.ev.mes.dao;

import com.ev.mes.domain.CrewSchedulingItemDO;
import com.ev.mes.vo.CrewSchedulingItemPageParam;
import com.ev.mes.vo.CrewSchedulingItemVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 文件名称： com.ev.mes.dao.CrewSchedulingItemDao.java</br>
 * 初始作者： ev-monitor</br>
 * 创建日期： 2020-08-06 10:31:52</br>
 * 功能说明： 排版计划子表 <br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者        日期       修改内容<br/>
 * ================================================<br/>
 * Copyright (c) 2020-2021 .All rights reserved.<br/>
 */
@Mapper
public interface CrewSchedulingItemDao {

	CrewSchedulingItemDO get(Long id);
	
	List<CrewSchedulingItemDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(CrewSchedulingItemDO crewSchedulingItem);
	
	int update(CrewSchedulingItemDO crewSchedulingItem);

	int updateAll(CrewSchedulingItemDO crewSchedulingItem);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	int batchUpdate(List<CrewSchedulingItemDO> param);

	int batchSave(List<CrewSchedulingItemDO> param);

	List<Map<String, Object>> pageList(CrewSchedulingItemPageParam pageParam);

	int pageCount(CrewSchedulingItemPageParam pageParam);

	List<Map<String, Object>> getByCrewId(Long id);

	int batchRemoveByCrewIds(Long[] crewIds);

	List<CrewSchedulingItemVO> checkRepeat(CrewSchedulingItemDO crewSchedulingItemDO);
}
